package com.jing21.learn.tests.crawler.resolver;

import org.jsoup.nodes.Element;

import java.util.List;
import java.util.Optional;

/**
 * Created by 郑靖 on 2017/10/8.
 */
public class BaiduResolver extends AbstractDomainResolver {

    public BaiduResolver(){
    }


    @Override
    protected List resolution(Element root) {

        Optional.ofNullable(root.getElementById("content_left"))
                .map(element -> element.select(".result"));

        return null;
    }
}
